require("./index.scss");
require("./baseinfo/index");        //基本信息
require("./balance/index");        //账户余额
require("./accountinfo/index");  //账户信息
require("./usercenter/index");  //用户中心
require("./staff-permission/index"); //员工权限管理
var Main = ZFT.Util.Class({
    container: $("body"),
    init: function () {
        var _this = this;
        _this.judgeTarget();
    },
    EVENTS: {
       
    },
    judgeTarget: function () {
        var _this = this;
        var url = window.location.href;
        var urlParam = ZFT.Util.UrlParse(url);
        var tar = {
            "0": "#uCenter",
            "1": "#accInfo",
            "2": "#accBalance",
            "3":"#staffPermission",
            "5":"#baseInfo"
        }
        if (tar.hasOwnProperty(urlParam.t)) {
            $(tar[urlParam.t]).click();
            history.replaceState(null, "", "usercenter");
        } else {
            $(tar["0"]).click();
            history.replaceState(null, "", "usercenter");
        }
    },
  

})
$(function () {
    new Main();
})